package com.wanmait.movie.controller;

import com.wanmait.movie.service.ParticipatingService;
import com.wanmait.movie.util.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("manage/participating")
public class ManageParticipatingController {
    @Resource
    private ParticipatingService participatingService;

    @GetMapping("getParticipatingByMovieId")
    public AjaxResult getParticipatingByMovieId(Integer movieId) {
        return AjaxResult.success(participatingService.getParticipatingByMovieId(movieId));
    }
}
